package com.sarnath.sardoop.modules.hbase.entity;

public class QueryCondition {
	private String tableName;
	private Class rowEntityClass=null;
	private int cacheSize=1000;
	private boolean cacheBlocks=false;
	private int rowLimit=0;//查询行数
	private String[] family;
	private String[] field;
	private String[] value;
	/**
	 *rowkey查询条件：以 rowPrefix开头
	 */
	private String rowPrefix;

	/**
	 * @param rowEntityClass 表映射实体类class，实体类使用@HbaseOrm与Hbase表建立映射关系
	 * @param tableName  查询表名
	 * @throws Exception
	 */
	public QueryCondition(Class rowEntityClass,String tableName){
		this.rowEntityClass=rowEntityClass;
		this.tableName=tableName;
	}
	public QueryCondition(){
		
	}
			
	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public int getCacheSize() {
		return cacheSize;
	}

	public void setCacheSize(int cacheSize) {
		this.cacheSize = cacheSize;
	}

	public boolean isCacheBlocks() {
		return cacheBlocks;
	}

	public void setCacheBlocks(boolean cacheBlocks) {
		this.cacheBlocks = cacheBlocks;
	}

	public int getRowLimit() {
		return rowLimit;
	}
	public void setRowLimit(int rowLimit) {
		this.rowLimit = rowLimit;
	}
	public Class getRowEntityClass() {
		return rowEntityClass;
	}
	public void setRowEntityClass(Class rowEntityClass) {
		this.rowEntityClass = rowEntityClass;
	}
	public String getRowPrefix() {
		return rowPrefix;
	}
	public void setRowPrefix(String rowPrefix) {
		this.rowPrefix = rowPrefix;
	}
	public String[] getFamily() {
		return family;
	}
	public void setFamily(String[] family) {
		this.family = family;
	}
	public String[] getField() {
		return field;
	}
	public void setField(String[] field) {
		this.field = field;
	}
	public String[] getValue() {
		return value;
	}
	public void setValue(String[] value) {
		this.value = value;
	}

}
